<html>
<body>
Reports calls like <code>"abc".substring(0, 1)</code> that can be replaced with <code>"abc"[0]</code>.
<p>Obtaining the element by index makes your code simpler.</p>
<p>The quick-fix replaces the <code>substring</code> call with the indexing operator.</p>
<p><b>Example:</b></p>
<pre><code>
  fun foo() {
      &quot;abc&quot;.substring(0, 1)
  }
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code>
  fun foo() {
      &quot;abc&quot;[0]
  }
</code></pre>
<!-- tooltip end -->
</body>
</html>